package csel.model;

public class Teleporter implements AreaEffect, java.io.Serializable
{
	private static final long serialVersionUID = 1L;
	private Tile dest;
	public Teleporter(Tile t)
	{
		this.dest = t;
	}
	public boolean enter(Entity e)
	{
		e.teleport(dest);
		return(true);
	}

	public boolean leave(Entity e)
	{
		return(true);
	}
	
	public void attach(GameGlobals globals)
	{
		// nothing needed
	}
}
